<?php 
if(isset($this->mess)){
    if($this->flag == 'success'){
        echo '<div class="bg-success">',$this->mess,'</div>';?>
       <script type="text/javascript">
        window.top.location.reload();
        </script>
        <?php }
    elseif($this->flag == 'alert'){
        echo '<div class="bg-warning">',$this->mess,'</div>';
        }
    else{
        echo '<div class="bg-danger">',$this->mess,'</div>';
        }
}
echo $this->loginForm;
?>